/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package main;

import javax.microedition.lcdui.Display;
import javax.microedition.midlet.*;

/**
 * @author Monster
 */
public class Game extends MIDlet {
    private Display display;
    private MH_Play mH_Play;
    private MH_Menu mH_Menu;
    public Game() {
        this.display= Display.getDisplay(this);                
        this.mH_Play=new MH_Play(this);        
        this.mH_Menu=new MH_Menu(this);
    }
    
    public void startApp() {
        this.ShowMHMenu();
    }
    
    public void pauseApp() {
    }
    
    public void destroyApp(boolean unconditional) {
    }
    public void ExitApp(){
        destroyApp(true);
        notifyDestroyed();
    }
    public void ShowMHPlay(){
        this.mH_Play.Init();
        this.mH_Play.Start();
        this.display.setCurrent(mH_Play);
    }

    private void ShowMHMenu() {
        this.display.setCurrent(this.mH_Menu);
    }
}
